package com.ld.service;

//import com.alibaba.dubbo.config.annotation.Service;
import com.ld.api.rpc.RoleSupportService;
import com.ld.entity.Role;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(version = "1.0")
public class RoleSupportServiceImpl implements RoleSupportService {

    @Autowired
    IRoleService roleService;
    @Override
    public List<Role> selectRolesByUserId(Long userId) {

        return roleService.selectRoleByUserId(userId);
    }
}
